import {
    createStore,
    applyMiddleware,
    combineReducers
} from 'redux'
import countReducer from "./reducers/countReducer"
import movieReducer from "./reducers/movieReducer"
import thunk from 'redux-thunk';

//使用redux提供的combineReducers方法 合并多个reducer
const allReducer = combineReducers({
    movie: movieReducer,
    count: countReducer
  })
  
const store = createStore(allReducer, applyMiddleware(thunk))
export default store;